//
//  TLRTextField.h
//  iOSBaseFramework
//
//  Created by user on 2020/6/17.
//  Copyright © 2020 com.taylor. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSInteger, TRTextInputMode) {
    TRTextInputModeZh_Hans = 0,
    TRTextInputMOdeEn_Us,
    TRTextFieldModeOther
};

@interface TRTextField : UITextField
- (instancetype)init;
- (instancetype)initWithFrame:(CGRect)frame;

/**
 输入类型
 */
@property (nonatomic,assign,readonly)TRTextInputMode inputMode;
   
/**
 占位符的字体
 */
@property (nonatomic, strong) UIFont *placeholderFont;
 /**
  占位符颜色
  */
@property (nonatomic, strong) UIFont *placeholderColor;
   
/**
真实长度 (不计算高亮部分)
 */
@property (nonatomic, assign) NSInteger trueLength;
   
/**
 设置最大长度
 @warning 此值必须大于零
 */
@property (nonatomic, assign)NSInteger maxLength;
   

//
//-(NSInteger)intrinsicContentSize {
//    
//}
@end

NS_ASSUME_NONNULL_END
